<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="js/vue.js"></script>
</head>
<body>

    <div id="app">
        {{ msg }}
        <button @click="hanleClick" @mouseover="hanleOver">点击我吧</button>
    </div>
    <script>
        let vm = new Vue({
            el:"#app",
            data:{
                msg:"hello vue"
            },
            methods:{
                hanleClick(){
                    console.log("点击了");                  
                },
                hanleOver(){
                    console.log("移入了");
                }
            }
        })
    </script>
</body>
</html>